<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			const map = new Map();
			//-------------增-------------------------------------
			map.set("name", "张三");
			map.set("age", 20);
			//-------------改-------------------------------------
			map.set("name", "李四");
			//-------------删-------------------------------------
			// map.delete("age");
			// map.clear()//清空
			//-------------查-------------------------------------
			// console.log(map.get("name"));
			//-------------遍历-------------------------------------
			for (let s of map) {
				console.log(s);
			}
			// console.log(map);
		</script>
	</head>
	<body>
	</body>
</html>
